<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'updatePage.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=path %>/css/mine.css" type="text/css" rel="stylesheet">
	<link href="<%=path %>/css/custom.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=path %>/js/privilege.js"></script>
	<script type="text/javascript" src="<%=path %>/js/dream_plugins.js"></script>
	<script type="text/javascript" src="<%=path%>/js/jquery-1.8.3.min.js"></script>
<style type="text/css">
table {
	border: 1px;
	width: 100%;
	margin: 10px auto;
	border-collapse: collapse;
}

#table tr th,td {
	border: 1px solid #666;
	font-size: 15px;
	text-align: center;
	line-height: 20px;
}

#table tr th {
	font-size: 15px;
}
#table tr:hover{background: #ccc; cursor: pointer}
.input{width:100%;}
</style>
  </head>
  
  <body>
   <div class="div_head">
		<span> <span style="float:left">当前位置是：用户管理  》菜单列表》修改一级菜单信息</span> <span
			style="float:right;margin-right: 8px;font-weight: bold"> <a
				style="text-decoration: none" href="./admin.php?c=goods&a=showlist">【主页】</a>
		</span>
		</span>
	</div>
	
	<form action="" id="updateOneMenu" name="updateOneMenu" method="post">
	<table id="table">
	<tr align="right">
	<label><td>一级菜单 </td>
	<td></td>
	</label>
	</tr>
	<tr align="right">
	<label><td>名称:</td>
	<td><input type="text" class="input" name="privilege.name" value="${privilege.name}"> </td></label>  
	</tr>
	<tr align="right">
	<label><td>URL:</td>
	<td><input type="text" class="input" name="privilege.url" value="${privilege.url}"> </td></label>
	</tr>
	<tr align="right"><label>  <td>移动为二级菜单: </td></label>
	<td><select name="parentId" class="input">
	<option value="0">---请选择---</option>
	<s:iterator value="#request.topprivilege">
	<s:if test="id!=privilege.id">
	<option value="${id}">${name}</option>
	</s:if>
	</s:iterator>
	</select> </td>
	</tr>
	<tr align="center">
	<td colspan="2">
	<input type="hidden" name="privilege.id" value="${privilege.id}">
	<label> <input type="button" value="提交" onclick="ToupdateOneMenu('updateOneMenu','Privilege_updateOneMenu')" name=""></label>
	 &nbsp;
	<label><input type="reset" value="重置">&nbsp;</label>
	<label><input type="button" value="返回" onclick="back()"></label>
	</td>
	</tr>
	</table>
	</form>
	 <div class="div_head">
		<span> <span style="float:left;color:red">
		注意:移动为二级菜单时，一级菜单下面的二级菜单将无法显示！若需要移动，最好先将一级菜单下面的菜单移走！</span> 
		</span>
	</div>
  </body>
</html>
